package com.itheima02.day05;

/**
 * @author 刘全
 * @date 2021/7/21
 */
public class IntegerDemo {
    public static void main(String[] args) {
        String str = "43 51 75 22 99 81 ";
        String[] strArray = str.split(" ");
        int[] arr = new int[strArray.length];
        for (int i = 0; i < strArray.length; i++) {
            arr[i] = Integer.parseInt(strArray[i]);
        }
        int min = arr[0];
        for (int i = 1; i < arr.length; i++) {
            if (arr[i] < min) {
                min = arr[i];
            }
        }
        System.out.println(min);
    }
}
